package mybatisplus.config;

/**
 * @Auther: tomj
 * @Date: 2019-04-03 10:03
 * @Description:
 */
public class Resp {
    private Integer status;
    private Object data;
    private String msg;

    public static Resp getSuccessResp(Object data,String msg){
        Resp resp = new Resp();
        resp.data = data;
        resp.msg = msg;
        resp.status = 1;
        return resp;
    }

    public static Resp getFaildResp(String msg){
        Resp resp = new Resp();
        resp.msg = msg;
        resp.status = 0;
        return resp;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
